//to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

.el-popover {
  box-sizing: initial;
}

.el-button--text {
  color: #4CA4FE;
}

.el-pagination {
  margin-top: 10px;
}
.el-pagination.is-background {
  .el-pager {
    li:not(.disabled).active {
      background-color: #446BDE;
    }
  }
}

.nav-wrap {
  .el-menu {
    .el-submenu__title {
      .el-submenu__icon-arrow {
        display: none;
        color: #fff;
      }
    }
  }
}

.el-menu {
  .el-submenu__title {
    .el-submenu__icon-arrow {
      color: #fff;
    }
  }
}

.el-form-item__content {
  .el-date-editor {
    .el-range-separator {
      padding: 0;
    }
  } 
}

.el-switch{
  zoom:1.3;
  .el-switch__core:after{
      content: "";
      position: absolute;
      top: -1px;
      border-radius: 100%;
      -webkit-transition: all .3s;
      transition: all .3s;
      width: 21px;
      height: 21px;
      background-color: rgba(144,146,149,1);
  }
}
.el-switch.is-checked{
    .el-switch__core:after{
      background-color: #3C83F6;
    }
}

.el-radio{
  .el-radio__label{
    color: #fff;
  }
}

.el-range-editor {
  background-color:rgba(58,59,60,.1);
  border-color: rgba(58,59,60,.1);
  &:hover {
    border-color: rgba(58,59,60,.1);
  }
  .el-input__icon {
    &.el-icon-date {
      background-color: rgba(81,128,206,.5);
      width: 58px;
      height: 40px;
      line-height: 40px;
      margin-left: -10px;
      font-size: 28px;
    }
  }
  .el-range-separator {
    color: #FFF;
  }
  .el-range-input {
    background-color: transparent;
    color: #FFF;
  }
}

// 下拉框样式重写
.el-popper {
  border-color: #1A2535;
  background: #1A2535;
  color: #FFF;
  .el-select-dropdown__item {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    color: #FFF;
    &.hover {
      background-color: #5384D5;
    }
  }
  .popper__arrow {
    border-bottom-color: #1A2535!important;
    &::after {
      border-bottom-color: #1A2535!important;
    }
  }
  .el-picker-panel__body-wrapper {
    .el-picker-panel__sidebar {
      border-color: rgba(93,125,177,.1);
      background-color: #1a2535;
      .el-picker-panel__shortcut {
        line-height: 40px;
        color: #fff;
        font-size: 16px;
      }
    }
    .el-picker-panel__body {
      .el-date-range-picker__time-header {
        border-color: rgba(93,125,177,.1);
        .el-date-range-picker__editors-wrap{
          .el-date-range-picker__time-picker-wrap {
            &:nth-child(1),
            &:nth-child(2) {
              .el-input {
                &::before {
                  position: absolute;
                  top: 1px;
                  left: 10px;
                  font-family: "font_family" !important;
                  font-size: 20px;
                  font-style: normal;
                  -webkit-font-smoothing: antialiased;
                  -moz-osx-font-smoothing: grayscale;
                  color: #768CB1;
                }
              }
            }
            &:nth-child(1) {
              .el-input {
                &::before {
                  content: "\e8b4";
                }
              }
            }
            &:nth-child(2) {
              .el-input {
                &::before {
                  content: "\e698";
                }
              }
            }
          }
        }
        .el-icon-arrow-right {
          color: #1D8EEF;
        }
        .el-input {
          .el-input__inner {
            padding-left: 35px;
            background-color: #202E41;
            border-color: #202E41;
            &:focus {
              border: 1px solid rgba(108,144,205,0.8);
            }
          }
          &.is-disabled {
            .el-input__inner {
              background-color: #666;
              border-color: #999;
              color: #FFF;
            }
          }
        }
        .el-popper {
          background-color: #2D3F59;
          .el-time-panel__content {
            &::before,
            &::after {
              margin-right: 0;
              margin-left: 0;
              border: none;
              background-color: #5384D5;
            }
            .el-time-spinner__wrapper {
              &:first-child {
                border-right: 1px solid rgba(26,37,53,.1);
              }
            }
            .el-time-spinner__item {
              color: #FFF;
              &.active {
                color: #FFF;
              }
              &:hover {
                background-color: #5384D5;
              }
            }
          }
          .el-time-panel__footer {
            border-color: rgba(93,125,177,0.1);
            .el-time-panel__btn {
              &.cancel {
                color: #FFF;
              }
            }
          }
        }
      }
      .el-picker-panel__content {
        border-color: rgba(93,125,177,.1);
        .el-picker-panel__icon-btn {
          margin-top: 6px;
          color: #FFF;
          font-size: 16px;
        }
        .el-date-table {
          font-size: 14px;
          th {
            border-color: rgba(93,125,177,.1);
            color: #FFF;
          }
          .el-date-table__row {
            .prev-month,
            .next-month {
              color: #666;
            }
            .in-range {
              div {
                background-color: #5384D5;
              }
            }
          }
        }
      }
    }
  }
  .el-picker-panel__footer {
    padding: 12px 10px;
    border-color: rgba(93,125,177,.1);
    background-color: #1a2535;
    .el-button {
      background: rgba(59,93,150,.5);
      font-size: 16px;
      padding: 7px 20px;
      border-radius: 17px;
      color: #FFF;
      &.el-button--default {
        border-color: transparent;
        background-color: #5384D5;
      }
    }
  }
}
